//
//  TeacherDetailViewController.m
//  teaching
//
//  Created by 衣尚品1 on 15/5/9.
//  Copyright (c) 2015年 衣尚品1. All rights reserved.
//

#import "TeacherDetailViewController.h"
#import "AppDelegate.h"

@interface TeacherDetailViewController (){
    AppDelegate *delegate;
}

@end

@implementation TeacherDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    
    self.teacherNameLabel.text = delegate.teacherDetailDic[@"name"];
    self.teacherPic.image = [UIImage imageNamed:delegate.teacherDetailDic[@"pic"]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
